package com.ct.application.goods.service.impl;

import com.ct.application.goods.service.IAdminGoodsService;
import com.ct.system.responsity.IAdminGoodsRespontory;
import com.ct.utils.threadlocal.UserThreadLocal;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AdminGoodsServiceImpl implements IAdminGoodsService {

    @Autowired
    private IAdminGoodsRespontory adminGoodsRespontory;

    @Override
    public List<Object> findGoodsList(){
        System.out.println(UserThreadLocal.get().getId());
        return null;
    }

    @Override
    public Boolean saveGoods(){
        System.out.println(UserThreadLocal.get().getId());
        return adminGoodsRespontory.saveGoods();
    }
}
